package com.study.encapsulation;

/**
 * 目标：学习如何更好的进行封装.
 */
public class Test2 {
    public static void main(String[] args) {
        Student stu = new Student();
        stu.setAge(23);
        System.out.println(stu.getAge());
        stu.setAge(-12);
    }
}
